/**
 * A simple new symbol generator for temporaries and labels.
 * Recall that GenericAttributes are what we need: Operand3a.
 * @author ??
 *
 */
public class SymbDistrib {
	private static int noTemp =0;
	private static int noLabel = 10;
	
	 public static VarAttribute newTemp(){
		  String name = "T_"+noTemp;
		  VarAttribute to = new VarAttribute(name);
		  noTemp++;
		  return to;
	 }

	 public static LabelAttribute newLabel(){
		  String name = "L"+noLabel;
		  LabelAttribute to = new LabelAttribute(name);
		  noLabel++;
		  return to;
	 }
}
